<?php

/**
 * author : Tran Minh Toan
 */

class Application_Form_Producer extends Zend_Form{
    
    public function init(){
        $this->setName('producer');
        //$this->setMethod('post');
        //$product = new Application_Form_Product();
        
        $producer_id = new Zend_Form_Element_Text('producer_id');
                $producer_id->setLabel('ID producer : ')
                    ->setRequired(true)
                    ->addValidator('NotEmpty');
            
        
     
            
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($producer_id, $product_name,
            $btn_submit, $btn_cancel));
           
    }
}
?>
